package com.lys.dao;

import com.lys.entity.ProductCategory;
import com.lys.param.ProductCategoryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by bdqn on 2016/5/12.
 * addObject(UserAddress userAddress)
 * getRowList(params)
 * getRowCount(params)
 * getById(Integer id)
 * updateByQuery(params)
 */
@Mapper
public interface ProductCategoryDao  {

	void deleteById(@Param("id") Integer parseLong);//删除商品分类
	
	public List<ProductCategory> queryProductCategorylist(ProductCategoryParam param);

	public List<ProductCategory> queryAllProductCategorylist(ProductCategoryParam param);
	
	public ProductCategory queryProductCategoryById(@Param("id") Integer id);
	
	public Integer save(ProductCategory productCategory) ;
	
	public Integer queryProductCategoryCount(ProductCategoryParam param);
	
	public void update(ProductCategory productCategory) ;
}
